
package Modelo;

import java.util.ArrayList;

public class AdmCursosConcretos {
	private ArrayList <CursoConcreto> CConcretos;
	//constructor
	public AdmCursosConcretos(){
		CConcretos = new ArrayList <CursoConcreto>();
	}
	public void AgregarCC(CursoConcreto c){
		this.CConcretos.add(c);
	}
	public CursoConcreto DameCursoConcreto(Integer n){
		return this.CConcretos.get(n);
	}
	public Integer DameCantCC(){    // cant de CC en lista
		return this.CConcretos.size();
	}
	public Integer DameIDCC (Integer n){ // IDCM identif de CM
		return this.CConcretos.get(n).DameIDcc();
	}
	public String DameCodCC (Integer n){ // IDCM identif de CM
		return this.CConcretos.get(n).DameCod();
	}
	public Boolean BorrarCC(CursoConcreto cc){
		Boolean r=CConcretos.remove(cc);
		return r;
	}

}

